<%@ page import="com.day240701.entity.Student" %><%--
  Created by IntelliJ IDEA.
  User: 王文尧
  Date: 2024/7/2
  Time: 16:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <script type="text/javascript">

        <%
            String msg = (String) session.getAttribute("msg");
            session.removeAttribute("msg");
            if (msg != null) {

        %>
        alert("<%=msg%>");
        <%
            }
        %>
    </script>
    <%
        Student my = (Student) session.getAttribute("my");
    %>
    <%=my%>
    <form method="post" action="manage">
        <input type="hidden" name="op" value="modifyMyInfo"/>
        学号: <input type="text" name="sNo" value="<%=my.getSNo()%>" readonly /><br/> <%--只读 学号不能改--%>
        姓名: <input type="text" name="sName" value="<%=my.getSName()%>" /><br/>
        密码: <input type="text" name="password" value="<%=my.getPassword()%>"/><br/>
        性别: <input type="text" name="sex" value="<%=my.getSex()%>"/><br/>
        年龄: <input type="text" name="age" value="<%=my.getAge()%>"/><br/>

        <input type="submit" value="修改"/>
    </form>
</body>
</html>
